package com.ecoolex.chinadutyfree.retailer.core.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ecoolex.chinadutyfree.retailer.core.mapper.UserOrderDataMapper;
import com.ecoolex.chinadutyfree.retailer.entity.UserOrderData;
import com.ecoolex.framework.common.pojo.Page;

public interface UserOrderDataDAO extends UserOrderDataMapper {
	
	Long add(@Param("recordTime") Date recordTime,
		@Param("createUser") String createUser,
		@Param("createTime") Date createTime,
		@Param("updateUser") String updateUser,
		@Param("updateTime") Date updateTime,
		@Param("deleted") Boolean deleted,
		@Param("yesterday") String yesterday,
		@Param("paid") String paid,
		@Param("complete") String complete,
		@Param("shipped") String shipped,
		@Param("afterSales") String afterSales);
	
	long countByDate(@Param("startDate") Date startDate,@Param("endDate") Date endDate,@Param("userId") Integer userId);
	
	List<UserOrderData> queryByDate(@Param("startDate") Date startDate,@Param("endDate") Date endDate,
		@Param("userId") Integer userId,@Param("sortsOrder") String sortsOrder,@Param("page") Page page);
}